package com.qqtech.qquan.circle.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.StringUtil;
import com.qqtech.qquan.user.enums.UserConst;

@SuppressWarnings("serial")
public class CircleInviteVo extends CircleInvite{
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
	
	/**圈友名称**/
	private java.lang.String inviterName;
	/**圈友头象**/
	private java.lang.String inviterImg;
	
	/**所在圈子名称**/
	private java.lang.String circleName;
	
	
	/**
	 * 成员头像全URL
	 * example: http://192.168.1.xxx:8080/circle/1.png
	 * @return
	 */
	public java.lang.String getFullInviterImg() {
		if(StringUtil.isBlank(this.getInviterImg())){
			return "";
		}else if(this.getInviterImg().indexOf("source://")>-1){
			return this.getInviterImg();
		} else{
			return super.getImgHandleDomain()+""+this.getInviterImg()+""+UserConst.IMG_POSTFIX;
		}
	}


	public java.lang.String getInviterName() {
		return inviterName;
	}


	public void setInviterName(java.lang.String inviterName) {
		this.inviterName = inviterName;
	}


	public java.lang.String getInviterImg() {
		return inviterImg;
	}


	public void setInviterImg(java.lang.String inviterImg) {
		this.inviterImg = inviterImg;
	}


	public java.lang.String getCircleName() {
		return circleName;
	}


	public void setCircleName(java.lang.String circleName) {
		this.circleName = circleName;
	}
}